# -*- mode: snippet -*-
# name: for i with iterator
# key: for.i.iterator
# contributor: Shuguang Sun
# --
for (${1:iter}=${2:var}.begin(); $1!=$2.end(); ++$1) {
    $0
}